package com.oa.android.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.oa.android.R;


/**
 *
 * 工作管理
 * @author -zouqh
 * 
 */
public class WorkMangeActivity extends Activity implements OnClickListener {

	private ImageView close;
	private TextView title;
	private LinearLayout geren,dbgz,myjh,gzcx;


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.work_mange_activity);
		close = (ImageView) findViewById(R.id.close);
		title = (TextView) findViewById(R.id.title_text);
		geren=(LinearLayout)findViewById(R.id.geren);
		dbgz=(LinearLayout)findViewById(R.id.dbgz);
		myjh=(LinearLayout)findViewById(R.id.myjh);
		gzcx=(LinearLayout)findViewById(R.id.gzcx);
		title.setText("工作管理");
		close.setOnClickListener(this);
		myjh.setOnClickListener(this);
		geren.setOnClickListener(this);
		dbgz.setOnClickListener(this);
		gzcx.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub

		Intent intent;
		switch (v.getId()) {
			case R.id.close:
				finish();
				break;

			case R.id.geren:
				intent=new Intent(this,WorkListActivity.class);
				intent.putExtra("type","1");
				startActivity(intent);
				break;
			case R.id.dbgz:
				intent=new Intent(this,WorkListActivity.class);
				intent.putExtra("type","2");
				startActivity(intent);
				break;
			case R.id.gzcx:
				intent=new Intent(this,WorkListActivity.class);
				intent.putExtra("type","3");
				startActivity(intent);
				break;
			case R.id.myjh:
				intent=new Intent(this,MyPlanActivity.class);
				startActivity(intent);
				break;

		default:
			break;
		}
	}


}
